document.form[0] is Null or Not an Object error when hiding a text field in ASP.Net
Posted
by grady
on Stack Overflow
See other posts from Stack Overflow
or by grady
Published on 2010-04-15T08:03:52Z
Indexed on
2010/04/15
8:13 UTC
Read the original article
Hit count: 221
Hey,
I am hiding a TextBoxin my aspx page like this:
myField.visible=false;
Now I have a DropDown as well which tries to access the TextBox on IndexChange. The problem is, it cant access the hiffen TextBox and I am getting document.form[0] is Null or Not an Object. How can I solve that? Is the some check for that in JavaScript?
Thanks :-)
© Stack Overflow or respective owner